/*
 Copyright (C) 2010-2013. 
 Ezequiel Palumbo, Calipsoide FOSS Foundation.
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public License
 along with this program.  If not, see http://www.gnu.org/licenses/. 
 
 Email: contacto@ehpalumbo.com.ar 
*/

package org.calipsoide.dbf2xml.xml;

import java.util.List;

import org.calipsoide.dbf2xml.model.Record;
import org.w3c.dom.Document;

/**
 * 
 * Builds a DOM object, created externally, with the contents in the list of 
 * records.
 * 
 * @since 1.0
 * @author ehpalumbo
 *
 */
public interface DOMBuilder {

	/**
	 * 
	 * Builds document with records.
	 * 
	 * @param document to build
	 * @param records to map to XML document
	 * 
	 */
	public abstract void build(
			final Document document,
			final List<Record> records);

}